//
//  KLBookBaseDAO.m
//  KLBookStore
//
//  Created by apple on 2017/10/15.
//  Copyright © 2017年 NetEaseExam. All rights reserved.
//

#import "KLBookBaseDAO.h"

@implementation KLBookBaseDAO

+ (long long)insertModel:(KLBaseModel *)model withDataBase:(FMDatabase *)db {
    NSString *msg = [NSString stringWithFormat:@"%s is not implemented"
                     "for the class %@", sel_getName(_cmd), self];
    @throw [NSException exceptionWithName:@"BookDAOInsertMethodException" reason:msg userInfo:nil];
}

+ (KLBaseModel *)queryModelByDoubanId:(long long)doubanId withDataBase:(FMDatabase *)db{
    NSString *msg = [NSString stringWithFormat:@"%s is not implemented"
                     "for the class %@", sel_getName(_cmd), self];
    @throw [NSException exceptionWithName:@"BookDAOQueryMethodException" reason:msg userInfo:nil];
}

+ (KLBaseModel *)queryModelById:(long long)localId withDataBase:(FMDatabase *)db{
    NSString *msg = [NSString stringWithFormat:@"%s is not implemented"
                     "for the class %@", sel_getName(_cmd), self];
    @throw [NSException exceptionWithName:@"BookDAOQueryMethodException" reason:msg userInfo:nil];
}

+ (BOOL)deleteModelWithDoubanId:(long long)doubanId withDataBase:(FMDatabase *)db{
    NSString *msg = [NSString stringWithFormat:@"%s is not implemented"
                     "for the class %@", sel_getName(_cmd), self];
    @throw [NSException exceptionWithName:@"BookDAODeleteMethodException" reason:msg userInfo:nil];
}

+ (BOOL)deleteModelWithId:(long long)localId withDataBase:(FMDatabase *)db {
    NSString *msg = [NSString stringWithFormat:@"%s is not implemented"
                     "for the class %@", sel_getName(_cmd), self];
    @throw [NSException exceptionWithName:@"BookDAODeleteMethodException" reason:msg userInfo:nil];
}

@end
